package com.lin.reggie.service;
import com.lin.reggie.common.R;
import com.lin.reggie.entity.Employee;
import com.lin.reggie.entity.Page;

public interface EmployeeService {

    /**
     * 登录的业务方法
     * @param employee
     * @return R
     * */
    //登录业务接口
    R<Employee> login(Employee employee);

    //查询页面数据接口，分页、搜索
    Page<Employee>findByPage(Integer page, Integer pageSize, String name);

    //添加员工
    boolean save(Employee employee);

    //启用禁用按钮
    boolean status(Employee employee);

    //启用修改员工信息
    R<Employee> findById(Long id);




}
